//
//  ViewController.m
//  IQKeyboardManager
//
//  Created by 梁森 on 2017/11/8.
//  Copyright © 2017年 梁森. All rights reserved.
//

#import "ViewController.h"
#import "TextViewController.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UITextField *firstField;
@property (weak, nonatomic) IBOutlet UITextField *secondField;
@property (weak, nonatomic) IBOutlet UITextField *thirdField;
@property (weak, nonatomic) IBOutlet UITextField *forthField;
@property (weak, nonatomic) IBOutlet UITextField *fifthField;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor yellowColor];
//    self.firstField.userInteractionEnabled = NO;
//    self.thirdField.userInteractionEnabled = NO;
    
    UITextField * field = [UITextField new];
    [self.view addSubview:field];
    field.backgroundColor = [UIColor redColor];
    field.frame = CGRectMake(100, 400, 100, 30);
    field.placeholder = @"占位文字...";
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    TextViewController * textVC = [TextViewController new];
    [self presentViewController:textVC animated:YES completion:nil];
}

@end
